<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <style>
        /* 滚动容器样式 */
        .scroll-container {
            width: 840px;
            background: linear-gradient(to right, #000000, #000000);
            overflow: hidden;
        }

        /* 滚动内容样式 */
        .scroll-outcontent {
            display: flex;
        }
        .scroll-content{
            float: left;
            display: flex;
            animation: scroll 10s linear infinite;
        }

        /* 单个滚动项样式 */
        .scroll-item {
            min-width: 200px;
            height: 150px;
            background-color: #ccc;
            margin-right: 10px;
        }

        /* 定义滚动动画 */
        @keyframes scroll {
            0% {
                transform: translateX(0);
            }
            100% {
                transform: translateX(-100%);
            }
        }
    </style>
</head>

<body>
    <div class="scroll-container">
        <div class="scroll-outcontent">
            <div class="scroll-content">
                <!-- 滚动项 -->
                <div class="scroll-item">Item 1</div>
                <div class="scroll-item">Item 2</div>
                <div class="scroll-item">Item 3</div>
                <div class="scroll-item">Item 4</div>
            </div>
            <div class="scroll-content">
                <!-- 滚动项 -->
                <div class="scroll-item">Item 1</div>
                <div class="scroll-item">Item 2</div>
                <div class="scroll-item">Item 3</div>
                <div class="scroll-item">Item 4</div>
            </div>
        </div>
    </div>
</body>

</html>